<?php

class Path {
	public static function getSystemPath() {
		if (is_link ( SYSTEM_PATH )) {
			return readlink ( SYSTEM_PATH );
		}
		return SYSTEM_PATH;
	}
	public static function getCurrModPath(){
		return self::getPathFromCurrentModuleName();
	}
	public static function getURLFromCurrentModuleName() {
	
	}
	public static function getPathFromCurrentModuleName() {
		$path = self::getSystemPath () . DIRECTORY_SEPARATOR . 'system' . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . SystemController::getCurrentModName();
		return $path;
	}
	public static function getURLFromModuleName($name) {
	
	}
	public static function getPathFromModuleName($name) {
		$path = self::getSystemPath (). DIRECTORY_SEPARATOR  . 'system' . DIRECTORY_SEPARATOR . 'modules' . DIRECTORY_SEPARATOR . $name;
		return $path;
	}
	public static function getAjaxFromModuleName($file) {
	
	}
	public static function getImagePath($filename) {
	
	}
	public static function getJSPath($filename) {
	
	}
	public static function getTemplateFromCurrentModule($file) {
		return file_get_contents ( self::getPathFromCurrentModuleName () . DIRECTORY_SEPARATOR . 'template' . DIRECTORY_SEPARATOR . $file );
	}
	public static function getAjaxPathFromCurrentModule($file) {
		return self::getPathFromCurrentModuleName () . DIRECTORY_SEPARATOR . 'ajax' . DIRECTORY_SEPARATOR . $file;
	}
}

?>